﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Microhard.WarehouseInsp.Buz.Validator;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Microhard.WarehouseInsp.Buz.Models
{
    [FluentValidation.Attributes.Validator(typeof(WarehouseModelValidator))]
    public class WarehouseModel : BasePermissionModel
    {
        public WarehouseModel()
        {
            this.StartTime = DateTime.Now;
            this.EndTime = DateTime.Now;
        }

        [ModelPKID]
        public Guid WarehouseID { set; get; }
        public string Name { set; get; }
        public string Address { set; get; }
        public double Area { set; get; }
        public int RentRange { set; get; }
        public string ClacType { get; set; }
        public string WarehouseType { get; set; }
        public string CheckType { get; set; }
        public Guid WarehouseMngID { set; get; }
        public string WarehouseMngName { get; set; }

        [UIHint("DownloadLinks")]
        public List<AttachmentModel> FileList { get; set; }
        //当前仓库管理员       
        public DateTime StartTime { set; get; }
        public DateTime EndTime { set; get; }

        public string WorkCondition { set; get; }
        public string LiveCondition { set; get; }
        public string EatCondition { set; get; }
        public DateTime CreateTime { set; get; }
    }
}
